<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<%@ include file="/commons/pages/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>鹰牌陶瓷合肥运营中心</title>
<meta name="keywords" content="鹰牌陶瓷,陶瓷,鹰牌,安徽,合肥" />
<meta name="description" content="鹰牌陶瓷合肥运营中心,首页,促销动态,促销动态,推荐产品,销售网点,广告宣传" />
<meta name="author" content="" />
<link rel="stylesheet" href="themes/default/default.css" type="text/css" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<!-- IE6 fixes are found in styles/ie6.css -->
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/ie6.main.css" /><![endif]-->
<script type="text/javascript" src="commons/scripts/jquery.js"></script>
<script type=text/javascript>kfguin="139800551";ws="www.16sucai.com"; companyname="鹰牌陶瓷合肥运营中心"; welcomeword="您好,欢迎光临鹰牌陶瓷合肥运营中心<brT>请问,有什么可以帮到您的吗?"; type="1";</script>
<script src="css/qq/js/kf.js" type=text/javascript></script>
</head>
<body>
<div id="wapper">
<%@ include file="header.jsp" %>
<div id="container">
  <div class="slider-wrapper theme-default">
    <div id="slider" class="nivoSlider">
      <c:forEach var="cur_ad" items="${dynamicAdList}">
        <img src="${ctx}/${cur_ad.accessory.save_url}" alt="" />
      </c:forEach>
      <c:if test="${empty dynamicAdList}">
        <img src="css/images/0.jpg" alt="" /><img src="css/images/1.jpg" alt=""/><img src="css/images/2.jpg" alt="" /><img src="css/images/3.jpg" alt=""/>
      </c:if>
    </div>
  </div>
</div>
<div style="height:25px;"></div>
<div id="sales_promotion" class="news">
  <div class="mt">
	   <h2>促销动态</h2>
	   <div class="extra"><a href="${ctx}/SalesPromotionDynamics.do?method=list&mod_id=2902" target="_blank">更多&gt;&gt;&nbsp;</a></div>
  </div>
  <div class="newslist">
		<div class="index_newspic">
		  <c:if test="${not empty NewsInfo2902[0]}">
			<a title="${NewsInfo2902[0].title}" href="${ctx}/SalesPromotionDynamics.do?method=view&mod_id=2902&id=${NewsInfo2902[0].id}" target="_blank">
				<img src="${ctx}/${NewsInfo2902[0].accessory.save_url}" title="${NewsInfo2902[0].title}"">
			</a>
			<div class="news_time1">[<fmt:formatDate pattern="yyyy-MM-dd" value="${NewsInfo2902[0].add_datetime}"/>]</div>
			<p>
				<a title="${NewsInfo2902[0].title}" href="${ctx}/SalesPromotionDynamics.do?method=view&mod_id=2902&id=${NewsInfo2902[0].id}" target="_blank">${NewsInfo2902[0].title}</a>
				<c:if test="${NewsInfo2902[0].is_hot eq 1}">
				  <span class="hot"></span>
				</c:if>
			</p>
		  </c:if>
		</div>
		<ul class="listBlock">
	    	<c:forEach items="${NewsInfo2902}" var="newsInfo" begin="1">
	    		<li class="clear-block">
			       	<p style="font-size: 12px">
			       	[<fmt:formatDate value="${newsInfo.add_datetime}" pattern="yyyy-MM-dd" />]
			       	<a href="${ctx}/SalesPromotionDynamics.do?method=view&mod_id=2902&id=${newsInfo.id}" target="_blank" class="more" title="${newsInfo.title}">
			       	  <c:if test="${fn:length(newsInfo.title) > 28}" var="flag">${fn:substring(newsInfo.title,0,28)}...</c:if>
			       	  <c:if test="${!flag}">${newsInfo.title}</c:if>
			       	</a>
			       	<c:if test="${newsInfo.is_hot eq 1}">
					  <span class="hot" style="padding-right: 22px;"></span>
					</c:if>
			       	</p>
			    </li>
	   		</c:forEach>
	    </ul>
  </div>
</div>
<div id="news" class="news">
  <div class="mt">
	   <h2>最新消息</h2>
	   <div class="extra"><a href="${ctx}/LastNews.do?method=list&mod_id=2901" target="_blank">更多&gt;&gt;&nbsp;</a></div>
  </div>
  <div class="newslist">
    <ul class="listBlock" style="margin-top: 4px;">
    	<c:forEach items="${NewsInfo2901}" var="newsInfo1">
    		<li class="clear-block">
		       	<p><a href="${ctx}/LastNews.do?method=view&id=${newsInfo1.id}" target="_blank" title="${newsInfo1.title}">
		       	  <c:if test="${fn:length(newsInfo1.title) > 28}" var="flag">${fn:substring(newsInfo1.title,0,27)}...</c:if>
			      <c:if test="${!flag}">${newsInfo1.title}</c:if>
		       	</a><span class="date">[<fmt:formatDate pattern="yyyy-MM-dd" value="${newsInfo1.add_datetime}" var="_add_datetime_"/>${_add_datetime_}]</span>
		       	<fmt:formatDate value="<%=new Date()%>" var="today" pattern="yyyy-MM-dd" />
		       	<c:if test="${today eq _add_datetime_}">&nbsp;<img src="${ctx}/css/images/newico.gif" /></c:if></p>
		    </li>
   		</c:forEach>
    </ul>
  </div>
</div>
<div id="recommend_product" class="news">
  <div clstag="homepage|keycount|homepage|special" id="special" class="mt">
	<h2>推荐产品</h2>
	<div class="extra"><a href="${ctx}/ProductDisplay.do?method=list&mod_id=3200&is_recommend=1" target="_blank">更多&gt;&gt;&nbsp;</a></div>
  </div>
  <div class="clear" style="height:2px;"></div>
  <div class="content carousel" id="pro">
    <ul class="clear-block" style="_height:1px;">
      <c:forEach var="p_cur" items="${productInfoList}">
      	<li title="${p_cur.product_model}${p_cur.product_name}">
          <div class="imgBlock"><a href="Album.do?product_id=${p_cur.product_id}&is_recommend=1" target="_blank" class="iframe">
            <img style="width:117px;height:76px" src="${ctx}/${p_cur.accessory.save_url}"></a>
          </div>
          <div style="padding:115px 0 0 0; text-align: center;font-size: 12px;">
            <p class="product_name" style="color:black;">型号：${p_cur.product_model}</p>
            <p class="product_des" style="color:black;">名称：${p_cur.product_name}</p>
          </div>
        </li>
      </c:forEach>
    </ul>
  </div>
</div>
<div id="sales_promotion" class="news" style="height: 320px;">
  <div class="mt">
	   <h2>销售网点</h2>
	   <div class="extra"><a href="${ctx}/CompanyIntroduce.do?mod_id=2400" target="_blank">更多&gt;&gt;&nbsp;</a></div>
  </div>
  <div class="info">
    <ul class="listBlock">
	   	<c:forEach items="${saleGrids}" var="saleGrid">
		     <li class="clear-block">
		        <div class="listcontent" style="margin-right: 25px">
		          <div class="d4">
		            <h3><a href="${ctx}/CompanyIntroduce.do?method=viewGrid&grid_id=${saleGrid.grid_id}" target="_blank" title="${saleGrid.grid_name}">${saleGrid.grid_name}</a></h3>
		            <p class="p4" title="${saleGrid.grid_addr}"><b>地址：</b>
		               <c:if test="${fn:length(saleGrid.grid_addr) > 20}" var="flag">${fn:substring(saleGrid.grid_addr,0,19)}...</c:if>
		               <c:if test="${!flag}">${saleGrid.grid_addr}</c:if></p>
		            <p class="p4"><b>电话：</b>${saleGrid.tel}<c:if test="${not empty saleGrid.fax}"><span style="float: right;margin-right: 10px;"><b>传真:</b>${saleGrid.fax}</span></c:if></p>
		          </div>
		        </div>
		        <div class="listimg"><a href="${ctx}/CompanyIntroduce.do?method=viewGrid&grid_id=${saleGrid.grid_id}" target="_blank"><img src="${ctx}/${saleGrid.accessory.save_url}" title="${saleGrid.grid_name}" style="width:120px;height:67px;"></a></div>
		      </li>
      	</c:forEach>
    </ul>
  </div>
</div>
<div id="news" class="news">
  <div class="mt">
	   <h2>广告宣传</h2>
	   <div class="extra"><a href="${ctx}/Advertising.do?method=list&mod_id=2810" target="_blank">更多&gt;&gt;&nbsp;</a></div>
  </div>
  <div class="info">
    <ul class="listBlock">
    	<c:forEach items="${advertisingSiteLinks}" var="siteLink">
		      <fmt:formatDate value="${siteLink.add_time}" var="_add_time_" pattern="yyyy-MM-dd" />
		      <li class="clear-block">
		        <div class="listcontent">
		          <div class="listmain">
		            <p class="date" style="font-size: 12px;margin-top: 5px;">[${_add_time_}]</p>
		            <p style="margin-top: 8px;font: 13px;font-weight: 500;"><a style="margin-left: -10px;" href="${siteLink.site_url}" target="_blank" title="${siteLink.title}">
		                 <c:if test="${fn:length(siteLink.title) > 47}" var="flag">${fn:substring(siteLink.title,0,45)}...</c:if>
			       	     <c:if test="${!flag}">${siteLink.title}</c:if></a><c:if test="${today eq _add_time_}">&nbsp;<img src="${ctx}/css/images/newico.gif" /></c:if></p>
		          </div>
		        </div>
		        <div class="listimg"><a href="${siteLink.site_url}" target="_blank"><img src="${ctx}/${siteLink.logo_url}" title="${siteLink.site_name}"></a></div>
		      </li>
      	</c:forEach> 
    </ul>
  </div>
</div>
<%@ include file="footer.jsp" %>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$('#slider').nivoSlider();
		if("${not empty productInfoList}" == "true"){
			$(".carousel").jMyCarousel({
		        visible:6,
				evtStart : 'mouseover',	
				evtStop : 'mouseout',
				auto:true
			});
			$(".iframe").colorbox({iframe:true, width:960, height:700});
		}
	});

	function gotoAlbum(product_id,product_type1,product_type2){//product_type1:一级分类;product_type2:二级分类
		location.href = "Album.do";
	}
	
	//打开弹出框后
	function showAdv(){
		$("#wapper").css("display","none");
		$("#colorbox").css("display","none");
	}
	
	//关闭弹出框后
	function closeAdv(){
		$("#wapper").css("display","block");
	}
</script>
</body>
</html>
